package com.lst.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.lst.dao.OnlineCourseMapper;
import com.lst.model.OnlineCourse;
import com.lst.service.OnlineCourseService;

@Service("onlineCourseService")
public class OnlineCourseServiceImpl implements OnlineCourseService {

	@Autowired
	private OnlineCourseMapper dao;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return dao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(OnlineCourse record) {
		return dao.insert(record);
	}

	@Override
	public int insertSelective(OnlineCourse record) {
		return dao.insertSelective(record);
	}

	@Override
	public OnlineCourse selectByPrimaryKey(Integer id) {
		return dao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(OnlineCourse record) {
		return dao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(OnlineCourse record) {
		return dao.updateByPrimaryKey(record);
	}

	@Override
	public List<OnlineCourse> queryList(Map<String, Object> map) {
		return dao.queryList(map);
	}

	@Override
	public List<OnlineCourse> queryByList(Map<String, Object> map,PageBounds pageBounds) {
		return dao.queryByList(map, pageBounds);
	}

	@Override
	public List<OnlineCourse> queryByInstrument(Map<String, Object> map) {
		return dao.queryByInstrument(map);
	}

	@Override
	public List<OnlineCourse> queryByRun(Map<String, Object> map) {
		
		return dao.queryByRun(map);
	}

	@Override
	public List<OnlineCourse> queryByCommon(Map<String, Object> map) {
		
		return dao.queryByCommon(map);
	}

	@Override
	public int countByMap(Map<String, Object> map) {
		
		return dao.countByMap(map);
	}

	@Override
	public List<OnlineCourse> queryList2(Map<String, Object> map) {
		
		return dao.queryList2(map);
	}

	@Override
	public List<OnlineCourse> queryList3(Map<String, Object> map, PageBounds pageBounds) {
		
		return dao.queryList3(map, pageBounds);
	}

}
